adding pagesize handler