improved debugging statements