bin/vmode: rewrite it in ruby