working-spawn corrected