support local mode