do error check in cdif.el