add working implementation of plugin