pre-checker to exit