added .wait handler to sanitizer script