imported SmartSpawn.hs