added more reader code