Fixing some bugs + logger + cfg loaders