connect and serve in the same way