moved module validation