move directives to separate repo ; support array of nodes