check for debug