added ability to upload template tar.gz files