removed print statements and logged a few of them. [broken pipe errors]