fixed pm schema, added permission denied error