made client programs more XBee friendly