removed chmod from files, not elegant soltuion to problem