added call to flashStop