fixes issues connecting to service