added exception type if you do not specify a token