check for enabled before publishing.