changed from exec to spawn