forgot to add the error checking to get_real_params() and get_flag()