Added handler for requesting spawn
fixed previous commit