added optional data map callback to autoPublish