first tinkering with templates
basic template pipelining works but includes still broken