optimize the SDK