moved parsing code into different file. it is broken now