cleaned up logging making it more intuitive to debug