create and update locations