improve api
fix test