refactoring application template and updating esprit and portentious bindings