add support for the which argument as a list