add code for starting instances