update to branch-api 0.2