added newcerts to the creat file function