remove unused dependencies
support legacy and new page encoding schemes using page header flags
more logic for handling legacy vs sparse encoding schemes
more logic for handling legacy vs sparse encoding schemes