add auto install script and split the package and config file