finished automation, added stop and terminate instances