implemented chunk proto