inserted method to get tmpdir, fixed: search still returning suggestions when giving a unique name