added first version of working plugin