some srcpy malloc magic to get a clear head;