only stop on certain conditions