updating Bulbs structure and cleaning up handle-sockets file