BUG: make path before searching