fixes for directories