added more debugging to bundle.cc