works with location.capture local path