added templates, need to remove datetimes or learn how to serialize them