some small code and lib