improved output for better debugging