CLSN-1283 create matrix directive