use the "page" index to generate file extension