tidy files and directories