solved some logging issues