remove hardcoded paths, enable auto-detection of directory
recovery feature