ENH: made the compression type optional