use this.ref instead of this.chunks