improve sc_get_token