add web mode to support velocity