added gerNewMessage module and fixed bugs