restore great functionality from old sed.