BUG: fixed a bug in the case where a dat already existed during publishing, would not give the correct user messages