added check and debug to DSF