getting closer to working, need to debug segfault