change MAX_WAIT from 29 to 5 minutes for re-idling
simplify IDLE mechanism and _send() logic
fix style in move()