add ready and initialize handlers