replace eval by call to get_api
replace eval by call to get_api