add support for restricting number of entries to show