changing api filter to hit related models