refactor checkgmail profiles to use JSON