improved debugging messages