Fixes
Adding logging for permission denied situations
Fix errors