importable badges lib for sugar datastore