add handles logic for nullcompressor