ditch malloc - use char-arrays - memory consuming?