refactor, add verifier, add strict json option