corrected warnings, and using prettytime for relative time