migrated dht sim to scala engine