add logic for pulling badges