working version with human readable timestamp