supporting csv input and caching RDDs