clean and update dependencies