took out unnecessary templates
added service to to wrap socket object