added xbee stuff to switchapp