changed type flags for compression scheme for more robustness