rewritr gen pub ip