simplified spawn code