variables need to be exported after source, not before