run server in subshell