stderr supressed due to write() hang issue. This should be verified later