cleanup and remove unused libs