made print statements debug mode only in manager