implementing chunk proto