update badge
addResources() support options way