refactored shellplugins.