changed from custom streamreader to RAF
changed from custom streamreader to RAF