init
connction code