- backport the addtion of the dotall flag from ST3