update Simulator, refractor process_message