do a more thorough job cleaning dependencies