cleaned up auth-z and endpoints calls
removed unnecessary sleep call