add max_depth and max_node setting