turn verifier into constructor