need fix for spawn