changed simulation thread/runnable structure