escape backslashes in LMS instead of at call-sites; refactor some ops to be more forge friendly