added static keyword for globals
removed poolaccess.c globals