moved main into anon_sim