fixed permissions and hashbangs