handle failed permissions