complete rewrite of ad_replying