initial work on publish