implement endless page feature, fix minor bug with path-info