add logging.debug to enviroment.run to print debug info