printing debug messages is now optional