removing server setup code from examples