error building the directory