still fixing permissions for generated files