update to new affiliate marketing code