update demo and lib