clean up the Publish.hx file a bit