changed to get, added datetime, clear messages