refactor query
regex addition/fixes
typo in reset_postprocessing.php