optional global

don't publish a global unless one was specified.