updated location plugin