basic parsing routines outlined