replace some mch_stat with os_get_file_info