add support for legacy pages