notebook api: added type option for cloneing