allow setting max number of results