untested boot rewrite