added option to have token in header