cmd plugin: make chainable and store self in data