initial code

first working version of plugin