move SimTask definition to sim.h