updated to use unixtimestam