builds badges and email plugin from @microadam