made run_all script workable