fix perms and path