added new generic parsing routines