add package install function.