got export working, runs pretty slow though..