change api url
add test legend command