fixed a few more bugs, simple export from dialog seems to work