add script for updating location from json