add debug code and set DESTDIR