new logical operators in template attributes and minor sayt fix