added _attach_read_handler