temp debuging stuff
don't call select every 20ms if we were called in a reentry
merge