added ready event on data library