minor cleanup
ensure that the sdk version is set
minor c++ ification, remove temporary buffer and use string