proper spawn function
Merge pull request #2 from Unia/master

proper spawn function