re-encoded the secure api vars