tweaks to zl_socket