updated filter for api requests