define a context for map/reduce