do not overwrite constructor, use init instead, set templatefile in a property