improved debugging output