create local mode main class