changed handling of formats/compression