hacked together stuff to allow local tree booting