fix the lagging with Rx and some other fixes