added writer & renamed reader