add option `local` for cortex server