added some date parsing stuff