cleanup & update libraries