implemented package management functionality