emits a ready event