move baremetal setup to a seperate script