cleaning up profile to simplify and use json serialization along with
gson instead of hashmap.