restore PomElement approach and enable basic serialization of profiles
plugin in the middle