debugging 'access to path denied' issue