add support for versioned global and session and a tag to emit them