making many rx/tx functions inline