move parser functions out of main program.