working mostly in canonical machine and text parser for now - DOES NOT COMPILE