fix bug: previous records are disordered on rewrite
handle coworkers better