add ad key file and update delay function
update