some further work to get publishing working