figured out how export works