added restart instance function