check for debug mode