setup begin/end over data from reader