moving sim stuff to the nsim package