working on fixing log errors