fix some bug
del and fix api