Be sure to have the ID files able ahead of entering the publish function