fixed up avor.sh a bit