removing sout
adding listener for debuggingwq