updated the locate plugin