Making prepublish work