moved verify to util