removing unused code
add gzipping to json creation