bugfix and add test
add usage and api list