updated templates and added json endpoint to logs