add scale/map rate functions, tests