added debug logging support
added debug logging support