more logging and prettier printing