error handled on read_reply