added flag simulation running