debugged token header

still have a lot of errors =\