devide common setup script.