midway through implementing export