implemented support for packages