client: implement socket bundling
light: fix initialization order