rework timing algorithms to prevent edge-case desynchronization.