update examples and lib