Instance number support

fixed instance number selection on load