preliminary stuff for simulation script