fix PHP 5.3+ compatibility with tokens came later