added install method in plugin