add res and fix permissions on git repo
revert some permissions in repo