add rlv query and response lms

please take a look at rlvmain to see how that works