updated logging class and plugin loading