add sanitization stuff (tested) + add a small check to timestamps