adding support for multiple columns in template