general refactor whit compression(encoding) class usage changes!