use genetic write file from template