fixed read_async and write