First trees, objectgen a bit more flexible