fixes to xbee interface