add log messages for debug