mostly compiles will patch & unit test vm r_case in the morning