cleanups
implemented (broken) compression. php does not have stream gzdeflate()