return a struct for the completed file