fixes for spawn_()