adding -t option to generate one file