trimmed twig, made all searches use api