small fix in messagestream and removed print statements