remove deprecated use of spawn
add sleep before talking to shark server