Add auto_discover 1 For alldeps install, Fix bugs