open reading before parsing