got export to work, and fixed a problem with add