added ready and notReady events to authentication and fixed getdevices