clean and add libs