added new option: pagesize