added command parser...its leaking memory in one place...dont know if i care