corrected prepublish script