dates seems obsolete, switching to XDate