fixed logger, dictionary issue