adding flattening accessors and updating quickstart example