removed customer groups, replaced nil with 0 prior to several api calls