fixed destructor problem, and application syntax stuff/.