fix up directories