fixing initial api auth issue