working - with Xbee refresh bug correction