made plugin chainable
enabled assigning actions by string or object