all of the parsing works now. debug in main() gives segfault tho