reworking file and file_path to fix MSLC issue