added permissions and settings