add initial support for pages