badges before calling gapi and parse