add support for locale, flip ahead and prerender