fixed read in function for files with hybrid states