strip out unnecessary dependencies