beginning of readingservlet and chunk architecture