amended the api to allow for a customisable group to search against