added timestamps and added persistent connections for client