add startSession and setDebugLogEnabled