fixed file perms and some details