added server config
fixed bug when no primary ads are returned, added server config