adding prehooks and compression