added support for watching to stream changing status
added methods for reading data with different php functions from stream