bugfixes in SDK and prebuilt SDK module