publlish script updates for compatibility
publlish script updates for compatibility