some refactoring
add support of min max values for languages