removed some console prints and tweaked the parse function to actually work