revised k3 run script to allow options for simulation mode