add debugging log.