embed and implement optiontree