added page compression to remove redundant page states; implemented state resolver