got exporting working
updated version