added generic publish (removed wrong version of util)