implemented synchronous read from process using readasync