removed restart and 2nd install, check if template exists and skip creation if it does