added logging.debug() messages