some improvements on getad call