add some compression and page optimization stuff