added pointer to flat esd friend to flat event