fix some interface and bugs
fix some bugs