reading file and start patsing