add check_option method