move task cmd from exec to spawn