more badge code updates