fixed multiplex setup, able to open sockets now