added lumberjack logging, some caching, things to the global header file