unify parsing of different measures