permissions error handling