add self inst and key var