frontend encoding and blocking, twoCompress work in progress