updated connections and changing template