allow using compress with DEBUG = True