moved non-parser related stuff to main.c
switched to netifaces
merged