added adapter to set custom socket