refactoring the compress classes
adding exceptions on http package