modified to include version read function defined in file