modified for publish profiles