read file + path registry refactor