added checks for level_type and scale_factor attributes