output controlled by debug setting