state, error, reader for writer