run_sim and state and obj is update