refactoring Pimf\Util\Validator and Pimf\Env handling