trying to fix permission errors