respect __tostring metamethod
fix mode, postpone resume and open event
usage example for read stream