fix quotes and ruby old hashes