move type check validation to configuration module.
define conf class barely.