more wip law stuff. trees are being created properly now.