moved global variable in library context