added ttl for messages , added lens library