index
add cache for api
fix bug