break out measure parsing for use in other apps