a somewhat dryer status.sh