add redirect function.
WIP i18n.