progress on using an msg instead of a rudimentary tree