sdk bug fixes