passing up global vars so it can be overrided