cleanup lib