added this pointer to special constructor, first version of esd to flat conversion...