Minor refactoring and pepify.
more pepification
add dummy solution for gziped/chunked