wrap up parsing. basic emulation