updated create location script