better badge updates, fixes prymitive/upaas#33