needed to clear flags before launch in case of failed launch