remove old spawn code