add per_page flag to command line