adjust preview server for 2.x, thanks to @yinheli via #220