add location helper. to build uniform path interface on the editor, osx, ios.