adding some debugging