small changes to timer, and initialization of topology()