problem with terminited on read