don't use 'which' since it's not available on all machines