finished templates, better logic for digest stuff