not very keen on global variables being exported from a dll.  Cleaner would be an accessor function.