refactor delegate ready events