renderTemplate now asynchronous