update some changes and test Rules for functions which could replace eudat.c