modifed to include arcstat.sh in function arc