initial code for using libxbee