adding socket support

and also set the default value to nil as per a discussion with portertech.