added dynamic templating to logstas