version 1.2, added destroySession and some API changes