debug logging enhancement