modify history and lib file