added threading for multiple bulbs and doubling bulbs commands for reliability