added the flavor metric, and moved vm_states to compute