better handling of access denied
removed debug print