fixed lack of permissions problem