add check for conn errors at backup func