add run_localy support