added .zip and .tgz support