making permission check on startup