update to new API authentication