small fixes to apod.sh