plugin is working rudimentarily, needs some serious debugging now