added some logging for debug help