token headers now working with factory wrapper