fixes for new message handler for qt5