fix directories and files