added temp token functions for 4.2 compatibility