updated readers and writers to work betterer