better date handling in the backend; pass proper this to fs callbacks