start java rewrite. queue, gzip reader + unit tests