changed from socket on attrs to options