added 'which' option to running libraries