remove unnecessary packages; use package dependencies rather than including them directly