added master parse routine to call via rails runner