ruby: more fixes