make portal use sprintf-js