move code from SlipStreamServer