move sth to lib