better function structure in pipeline list for sockets