Update api, fix bugs