some debugging of dj.cpp and dj.h