add check if region mapping and mask are corrected or not
separate config from main