still wrestling with the blasted memory allocation issue