removed socket dependency in cockpit.service