add for_repos settings
fix permission