fixed up plugin