added ndiclass and setup connection