updated templates and integration with algogd