added web mode, zencoding mode, scala mode