make some debug printing conditional to a flag