debug for spawn