adding better support for file concatenation/compression