implement optional compression based on extensions