chunks should be array
Refactor the default compressor register method