add ruby mode support