add support for run_locally