use new API function to avoid one check_screen per pattern