improved debugging info