Now sockets passed to packets processors

And some more minor changes