added ads support.