Better method for hooking the package manager, hook three more methods