get msg_buffer working