rewrite date class and remove those files useless