fixed bugs and add new api