adding msgs to tree structure (automatic and works)