ref check_open