added code to get affiliate account info