added starting and stopping for the instance, with waiting until the instance gets to the right status