read_source cleanup