avoid "permission denied" error