added further parsing of xbee output