fixing read_file compile