better fetch() argument detection