added .settings in gitignore
added check permission