added run_rest proc