restructured base package install script