-fleshing out functionality for plugin