libs cleanup