modifications to support rgm qs

;