updated web library to use regex parser, consolidated similar steps, and added then element presense check