enhanced ruby mode