making upload backwards compatible with current token from Firebase