Added mongo and locate settings, changed priority of paths.