refactored file path storage