adding debug logging
debug logging in hardening