trim unnecessary dependencies