added socket factory for travis