bug fixes for running on USRP