argh... finally got badge working