some functions for interactive checks