change init to messagebuffer