add set delegate ready function
Merge branch 'tmp'