check that conninfo is not NULL before using it
update examples