interface for escaping the pipeline; better InternalError
added a couple Format helpers; minor cleanup