no 'self' in query when config.prod = false