function for rebuilding coreos env