make run-on-doc easier to use in threading macro