move the publication code into a new module and add publishing the compiled-out code