added spouse support in tree maker