commit - added new permissions and device checking