cleans up file structure