move setBadge to client code for now