fixed issues with logs