fixing some problems in zoo, and changes in simulate_zoo