remove unused dependencies, specify package versions