added debugs for dan