remove unused libraries
write configuration info to file