v119, reorganize code for optional export settings