added chainability to plugin and demonstration