fixed date handling and added functions now since RJSONIO