this fixed it, the leightweight headless works now

I hope  learned my lesson now .... memcpy is evil regarding C++ objects ....!