add socket as option