update deluge to use templating.