bugfix directory perms