added instance restart function