remove unused code and update deps