add multistage support, i18n