added support for multiple packages