support multiple res types
prelim M2 support
M2 support for discrete models