stdout cleaned and debug level adjusted