adding CheckExportable
update sample/dscript