simplify ruby mode