switched to native date, yyyymmdd for i/o only
tidying