use -a for tee as that's more widespread among OSes