allow publish message to be translated and add dynamic states