Cut down to one handler generator and added compression functionality
Fixed compression