change output format to ruby-hash