init (todo: disconnect problem!)