adding support for package deprecation.  Fixes #4