most of the *printf-s removed