logging to figure out why we're not exporting
....
remove logging and switch logic