new RMS and DMS

Please DO NOT merge it yet. New DMS-FTS part is not tested.