all simulation code is in a single file now