added minimal support for compressed files