fixing clear console in messenger class