add code to test if path already exists