got most of main out of the way. going to start logging code soon