api change for adding named & anonymous instances