fix issue #2 (and realize the need for a better tree parser!)