support multiple res types
prelim M2 support