supx_dumper: rewrite as a ruby script