working vqdemo with chunking feature