confirmed writeSales() works in CL main