configurable debug printing