web mode and ruby mode