support mode=visualize again for backward compatibility