added beginning of iAD support