init with server