add compression and fix problem for urls