print debug messages only in debug mode