improvements to rhopot.rb (fixes for future CDO version >= 1.6.0)