added cap addinstance