traversal encoding, and macro invocations for all api methods