move verification into a helper function
move verification into a helper function

escapewindow/signingscript,escapewindow/signingscript,escapewindow/signingscript,escapewindow/signingscript,escapewindow/signingscript,escapewindow/signingscript