service() method to run server