add support for custom top-level sequences