load token from parameter if it is not in the header
catch exception during process token