change setup server logic for browser repl