add %z argument format, refactor part of preprocessing logic into RouteEntry