fixed pagination. use config for pagesize variable.