run_all function; also, bugfix