changing to emitting the lastmodified time of the file instead of the date_unixtime
add duck typing to guarantee it doesn't break