set up server and piping