simplified parser destructors a bit