use flag for tracking instance starting