do not double slash files, and updated permissions