try to handle permission denied