adding helper methods to better get instance types