read call fixes