use tplaner/When lib and new models