cleaned up bad loging