add tracking for production and stub for token auth