add requires.
get rid of infinite loop in package install error handling.